// @ts-nocheck

import {API_BASE_URL} from  "@/lib/config";

/** @type {import('./$types').PageServerLoad} */
export async function load({ fetch, params,url }) {

    const res = await fetch(`${API_BASE_URL}/api/weapon?weapon_hash=${params.slug}&language=zh-chs&is_craft=true`);
    const {Response} = await res.json();
    if(Response){
        return {
            code:0,
            Response
        };
    }
    return {
        code:1,
    };
	
	
}


